<!DOCTYPE html>
<html lang=&quot;en">
<head>
	<meta charset="UTF-8">
	<title>mydemo</title>
	<style type="text/css">
		body,pre {margin:0;padding:0;}
		#outer {margin:10px;border:1px dashed black;background:white;padding:10px;}
	</style>
	<script type="text/javascript">
		window.onload = function() {
			/*转义字符的运用*/
			alert("typeof 12345 → " + '\u2192' + typeof 12345 + "\n\ntypeof \"abc\" → " + typeof "abc" + "\n\ntypeof document → " + typeof document
	  );}
	</script>
</head>
<body>
<pre id="outer">
&lt;script&nbsp;type=&quot;text/javascript&quot;&gt;
	alert(typeof 12345);		//输出number
	alert(typeof &quot;abc&quot;);		//输出string
	alert(typeof document);		//输出object
&lt;/script&gt;
</pre>
</body>
</html>